package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.EstatePhoto;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EstatePhotoRepository extends MongoRepository<EstatePhoto, String> {
    List<EstatePhoto> findAllByEstateUniqueUuidAndCategoryName(String estateUniqueUuid, String categoryName);

    EstatePhoto findByEstateUniqueUuidAndPhotoUuid(String estateUniqueUuid, String photoUuid);
}
